<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:48:"D:\webroot\tongji/app/home\view\index/index.html";i:1543915022;s:48:"D:\webroot\tongji/app/home\view\common/head.html";i:1539420927;s:50:"D:\webroot\tongji/app/home\view\common/footer.html";i:1542422876;}*/ ?>
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='__HOME__/css/aui.css' rel='stylesheet' />
<style>
  .aui-bar-nav{background:white;}
  .aui-bar-nav .aui-btn .aui-iconfont{color:black;}
  body{background:#ffffff;margin-bottom:3rem;}
  .aui-bar-nav .aui-title{color:black;}
  .aui-bar-tab{border-top: 1px solid #e4e4e4;}
  .area1{border-radius:5px;text-align:center;background:url('__HOME__/images/bg1.jpg');background-size: contain;color:white;padding:1rem 0;box-sizing:border-box;}
  .area1 p{color:white;font-size:0.5rem;}
  .area1 div:nth-child(1){border-right:1px solid;border-image:url(__HOME__/images/line.jpg) 25 25 round}
  .buy_fos{border-radius:5px;text-align:center;height:16rem;}
  .mark{bottom:20px;right:10px;color:white;text-align:right;position:absolute;border-image:url(__HOME__/images/linebg2.png) 25 25 round;border-bottom:1px solid;line-height:2rem;}
  .buy_fos .aui-col-xs-6:nth-child(2) img{width:85%}
  .buy_fos .aui-row{background:url('__HOME__/images/bg2.jpg');background-size: contain;border-radius:5px;padding:10px;box-sizing:border-box;position:relative}
  
  .buy_fos .aui-col-xs-6:nth-child(1) .aui-row{margin-right:0.25rem;border-radius:5px;height:15.5rem;padding-top:3rem;box-sizing:border-box;}
  .buy_fos .aui-col-xs-6:nth-child(2) .aui-row{margin-left:0.25rem;height:7.5rem}
  .hr{height:0.5rem;}
  
  .finance_center{background:url('__HOME__/images/bg3.jpg');background-size: contain;border-radius:5px;position:relative}
  .coin_purse{background:url('__HOME__/images/bg4.jpg');background-size: contain;border-radius:5px;position:relative}
  
  
  .finance_center .aui-col-xs-1, .coin_purse .aui-col-xs-1{height:4rem;}
  .finance_center .aui-col-xs-3, .coin_purse .aui-col-xs-3{position:absolute;right:10px;bottom:20px;border-image:url(__HOME__/images/linebg2.png) 25 25 round;border-bottom:1px solid;color:white;text-align:right;line-height:2rem;}
  .finance_center .aui-col-xs-8{background:url('__HOME__/images/bg1.png') center;background-size:cover;height:4rem;}
  .coin_purse .aui-col-xs-8{background:url('__HOME__/images/bg2.png') center;background-size:cover;height:4rem;}
  h1{color:white;}
</style>
<title>My Home</title>
<body>
   <header class="aui-bar aui-bar-nav">
    <a href='<?php echo url("/home/mcenter"); ?>' class="aui-pull-left aui-btn aui-btn-outlined">
        <span class="aui-iconfont aui-icon-my"></span>
    </a>
    <div class="aui-title">MY HOME</div>
    <a class="aui-pull-right aui-btn aui-btn-outlined">
        <span class="aui-iconfont aui-icon-mail"></span>
    </a>
  </header>
<div class='aui-content-padded tab_content'>
  <div class='aui-row area1'>
     <div class='aui-col-xs-6'>
        <h1><?php echo round2($count); ?></h1>
        <p>总资产</p>
     </div>
     <div class='aui-col-xs-6'>
        <h1><?php echo round2($day_sy); ?></h1>
        <p>每日收益</p>
     </div>
  </div>
  <div class='hr'></div>
  <div class='aui-row buy_fos'>
     <a href='<?php echo url("fos/subscrible"); ?>'>
     <div class='aui-col-xs-6'>
        <div class='aui-row'>
              <img src='__HOME__/images/icon1.png'/>
              <div class='mark'>认购FOS</div>
        </div>
     </div>
	 </a>
     <div class='aui-col-xs-6'>
         <div class='aui-row'>
		  <?php if($user['level'] == 0): ?>
		    <img src='__HOME__/images/icon2.png'/>
            <div class='mark'>我的区块</div>
		  <?php else: ?>
		   <a href='<?php echo url("fos/my_team"); ?>'>
            <img src='__HOME__/images/icon2.png'/>
            <div class='mark'>我的区块</div>
		   </a>
		  <?php endif; ?>
         </div>
         <div class='hr'></div>
         <div class='aui-row'>
		    <a href='javascript:tips()'>
            <img src='__HOME__/images/icon3.png'/>
            <div class='mark'>股权中心</div>
			</a>
         </div>
     </div>
  </div>
    <div class='aui-row finance_center'>
	 <?php if($user['level'] == 0): ?>
	   <div class='aui-col-xs-1'></div>
        <div class='aui-col-xs-8'></div>
        <div class='aui-col-xs-3'>
          财务中心
        </div>
	 <?php else: ?>
       <a href='<?php echo url("Mcenter/money"); ?>'> <div class='aui-col-xs-1'></div>
        <div class='aui-col-xs-8'></div>
        <div class='aui-col-xs-3'>
          财务中心
        </div>
	   </a>
	  <?php endif; ?>
     </div>
     <div class='hr'></div>
    <div class='aui-row coin_purse'>
	   <?php if($user['level'] == 0): ?>
	     <div class='aui-col-xs-1'></div>
			<div class='aui-col-xs-8'></div>
			<div class='aui-col-xs-3'>
			  零钱包
			</div>
	   <?php else: ?>
       <a href='<?php echo url("Mcenter/wallet"); ?>'>
  	    <div class='aui-col-xs-1'></div>
        <div class='aui-col-xs-8'></div>
        <div class='aui-col-xs-3'>
          零钱包
        </div>
       </a>
	   <?php endif; ?>
     </div>
</div>

<div class='aui-content-padded tab_content'>
  
</div>

<div class='aui-content-padded tab_content'>
   
</div>

<div class='aui-content-padded tab_content'>
  
</div>

<div class='aui-content-padded tab_content'>
  
</div>

<footer class="aui-bar aui-bar-tab" id="footer">
    <div class="aui-bar-tab-item aui-active" tapmode>
        <i class="aui-iconfont aui-icon-home"></i>
        <div class="aui-bar-tab-label">首页</div>
    </div>
    <div class="aui-bar-tab-item" tapmode>
        <i class="aui-iconfont aui-icon-menu"></i>
        <div class="aui-bar-tab-label">任务</div>
    </div>
    <div class="aui-bar-tab-item" tapmode>
        <div class="aui-dot"></div>
        <i class="aui-iconfont aui-icon-calendar"></i>
        <div class="aui-bar-tab-label">培训</div>
    </div>
    <div class="aui-bar-tab-item" tapmode>
       
        <i class="aui-iconfont aui-icon-my"></i>
        <div class="aui-bar-tab-label">关于我们</div>
    </div>
    <div class="aui-bar-tab-item" tapmode>
        <i class="aui-iconfont aui-icon-star"></i>
        <div class="aui-bar-tab-label">生态项目</div>
    </div>
</footer>

<script type="text/javascript" src="__HOME__/script/api.js"></script>
<script type="text/javascript" src="__HOME__/script/aui-tab.js"></script>
<script type="text/javascript" src="__HOME__/script/aui-dialog.js" ></script>
<script type="text/javascript" src="__HOME__/script/aui-toast.js" ></script>
<script type="text/javascript" src="__HOME__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/layer/layer.js"></script>

<script type="text/javascript">
    apiready = function(){
        api.parseTapmode();
    }
    var tab = new auiTab({
        element:document.getElementById("footer")
    },function(ret){
        if(ret){
            //$(".tab_content").hide();
            //$(".tab_content").eq(ret.index-1).show();
			if(ret.index == 2){
			    location.href = '<?php echo url("task"); ?>';
			}
        }
    });
	
	var dialog = new auiDialog({})
	function tips(){
	    dialog.alert({
			title:"提示",
			msg:"敬请期待!",
			buttons:['确定']
		});
	}
</script>
</body>
</html>